package cn.JHai.domain;
import java.io.Serializable;
import java.util.Date;
public class User implements Serializable{
	private int uid;
	private String username;
	private String password;
	private String email;
	private String gender;
	private Date birthday;
	private String headImage;
	private String info;
	public String getInfo() {
		if(info!=null)return info.trim();
		return null;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public int getUid() {
			return uid;
		}
		public void setId(int uid) {
			this.uid = uid;
		}
		public String getUsername() {
			return username.trim();
		}
		public User(int uid, String username, String password, String email, String gender, Date birthday,String headImage,String info) {
			super();
			this.uid = uid;
			this.username = username+"";
			this.password = password+"";
			this.email = email+"";
			this.gender = gender+"";
			this.birthday = birthday;
			this.headImage = headImage+"";
			this.info = info+" ";
		}
		public User() {
			// TODO Auto-generated constructor stub
		}
		public String getGender() {
			if(gender!=null)
			return gender.trim();
			else return null;
		}
		public void setGender(String gender) {
			this.gender = gender;
		}
		public void setUsername(String username) {
			this.username = username;
		}
		public String getPassword() {
			return password.trim();
		}
		public void setPassword(String password) {
			this.password = password;
		}
		public String getEmail() {
			return email.trim();
		}
		public void setEmail(String email) {
			this.email = email;
		}
		public Date getBirthday() {
			return birthday;
		}
		public void setBirthday(Date birthday) {
			this.birthday = birthday;
		}
		public String getHeadImage() {
			return headImage.trim();
		}
		public void setHeadImage(String headImage) {
			this.headImage = headImage;
		}
		
}
